﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace s7nck
{
    /*异步消息的对象*/
    public class StateOneBase
    {
        // Fields
       
        private int dataLength;
    
        private int alreadyDealLength;
    
        private ManualResetEvent waitDone;
        
        private byte[] buffer;
    
        private bool isError;
    
        private string errerMsg;

        // Methods
        public StateOneBase()
        {
            this. DataLength  = 0x20;
        }


        // Properties
        public int DataLength { get;  set; }
        public int AlreadyDealLength { get;  set; }
        public ManualResetEvent WaitDone { get;  set; }
        public byte[] Buffer { get;  set; }
        public bool IsError { get;  set; }
        public string ErrerMsg { get;  set; }

    }
}
